<template>
  <main-container v-if="navList.length > 0" class="main-only-box-bg-gray" :navList.sync="navList" :options="options" :isShowIframeHeader="false" :is-tab="false" />
</template>

<script>
  import MainContainer from '@/common/components/mainContainerMenu';
  import { apiContractInfo } from '../../../api/contract';

  export default {
    name: 'InformThrowMain',

    components: {
      MainContainer,
    },

    data() {
      return {
        navList: [
          
        ],
        options: [],
        approveNavList: [
          {
            name: '审批信息',
            menuUrl: '/businessAssets/ContractManage/throwapprove',
          },
        ],
        infoNavList: [
          {
            name: '合同信息',
            menuUrl: '/businessAssets/ContractManage/throw',
          },
        ],
      };
    },
    mounted() {
      this.initNavList();
    },

    methods: {
      //初始化tab
      initNavList() {
        if (this.$route.query.processWorkId) {
          this.navList = [...this.approveNavList, ...this.infoNavList];
        } else {
          this.navList = [...this.infoNavList];
        }
      },
    },
  };
</script>
